# -*- coding: utf-8 -*-
# @Time    : 2023/5/8
# @Author  : tangyu
from app.main.entity.base_entity import BaseEntity


class PerformancePredirtionEvaLuationEntity(BaseEntity):
    """
    屈服强度各种参数
    """

    def __init__(self, request_data):
        # request_data['Y'] = request_data['Y'].lower()
        request_data['group_var'] = request_data['group_var'].lower()
        request_data['reelKey_cname'] = request_data['reelKey_cname'].lower()
        request_data['reelKey'] = request_data['reelKey'].lower()
        request_data['Y'] = request_data['Y'].lower()
        self.time_type = request_data['time_type']
        self.begin_data = request_data['begin_data']
        self.end_data = request_data['end_data']
        self.tablename = request_data['tablename']
        self.Y = request_data['Y']
        self.group_var = request_data['group_var']
        self.group_name = request_data['group_name']
        self.modelname = request_data['modelname']
        self.evaluation_method = request_data['evaluation_method']
        self.reel_key_cname = request_data['reelKey_cname']
        self.reel_key = request_data['reelKey']
        if request_data:
            self.set_attr(request_data)

